package com.hkts.beltweigher.master.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hkts.beltweigher.master.entity.HktsFieldControl;
import com.hkts.beltweigher.master.mapper.HktsFieldControlMapper;
import com.hkts.beltweigher.master.service.IHktsFieldControlService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
@Service
@Transactional
public class HktsFieldControlServiceImpl extends ServiceImpl<HktsFieldControlMapper, HktsFieldControl> implements IHktsFieldControlService {


    @Autowired
    private HktsFieldControlMapper hktsFieldControlMapper;

    @Override
    public IPage<HktsFieldControl> selectPage(Page<HktsFieldControl> page, HktsFieldControl hktsFieldControl){
        QueryWrapper<HktsFieldControl> query=Wrappers.query();
        return hktsFieldControlMapper.selectPage(page,query);
        }


    @Override
    public List<HktsFieldControl> selectList(HktsFieldControl hktsFieldControl){
        QueryWrapper<HktsFieldControl> query=Wrappers.query();
        return hktsFieldControlMapper.selectList(query);
        }


}
